@model InvoiceProject.Models.Quote

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Quote</legend>

    <div class="display-label">DateModified</div>
    <div class="display-field">@String.Format("{0:g}", Model.DateModified)</div>

    <div class="display-label">UserModified</div>
    <div class="display-field">@Model.UserModified</div>

    <div class="display-label">Customer</div>
    <div class="display-field">@(Model.Customer == null ? "None" : Model.Customer.LastName)</div>

    <div class="display-label">Business</div>
    <div class="display-field">@(Model.Business == null ? "None" : Model.Business.Name)</div>

    <div class="display-label">TotalIncTax</div>
    <div class="display-field">@String.Format("{0:F}", Model.TotalIncTax)</div>

    <div class="display-label">TotalTax</div>
    <div class="display-field">@String.Format("{0:F}", Model.TotalTax)</div>

    <div class="display-label">InvoiceDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.InvoiceDate)</div>

    <div class="display-label">InvoiceItems</div>
    <div class="display-field">@(Model.InvoiceItems == null ? "None" : Model.InvoiceItems.Count.ToString())</div>

    <div class="display-label">QuoteDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.QuoteDate)</div>

    <div class="display-label">ExpiryDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.ExpiryDate)</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


